const MyPromise = require('./MyPromise')

const mypromise = new MyPromise((resolve, reject) => {
    setTimeout(() => {
        resolve('成功')
    }, 10);
});

let my1 = mypromise.then(value => {
    console.log(value);
}, err => {
    console.log(err);
})

MyPromise.all([1, 2, 3]).then((result) => {
    console.log(result);
})